package org.example.task.service;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import org.example.task.model.dto.PageDTO;
import org.example.task.model.po.UserRole;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.task.model.query.UserRolePageQuery;
import org.example.task.model.vo.userrole.UserRoleVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-06-30
 */
public interface IUserRoleService extends IService<UserRole> {

    PageDTO<UserRoleVO> getUserRolePage(UserRolePageQuery userRolePageQuery);


    boolean removeUserRoleById(@NotNull Long userId, @NotNull Long roleId);
}
